//
//  WEbcheViewController.m
//  jice
//
//  Created by apple on 16/7/16.
//  Copyright © 2016年 apple. All rights reserved.
//
#import "WEbcheViewController.h"
#import "WebViewJavascriptBridge.h"
#import "WKWebViewJavascriptBridge.h"

#import <TMT4IOS/AFNetworking.h>

#import <MapKit/MapKit.h>
#import <CoreLocation/CoreLocation.h>

@interface WEbcheViewController ()<UIWebViewDelegate,WKNavigationDelegate>{
    UIWebView* webView;
        }
@property(nonatomic,strong)WebViewJavascriptBridge *bridge;
@property(nonatomic,strong) WKWebViewJavascriptBridge* _WKBridge;
@property (strong,nonatomic)NSString *currentURL;
@end
@implementation WEbcheViewController
-(void)initNavBar{
 UIButton *titleButton=[[UIButton alloc]initWithFrame:CGRectMake(0, 0, 40, 40)];
    
    [titleButton setTitle:_titleStr forState:UIControlStateNormal];
    self.navigationItem.titleView=titleButton;
    self.view.backgroundColor=[UIColor whiteColor];
 
}
-(void)conback{
     [self.navigationController popViewControllerAnimated:YES];

}

- (void)viewWillAppear:(BOOL)animated {
    
  
//    
//    UIView *backView=[[UIView alloc]initWithFrame:CGRectMake(0, 0, widthOfView, 20)];
//    backView.backgroundColor=colorRGBA(63, 62, 67, 1.0);
//    [self.view addSubview:backView];
    webView = [[UIWebView alloc] init];
    webView.delegate=self;
    [self.view addSubview:webView];
    webView.frame=CGRectMake(0, 0, 320, 568);
   

    }
- (void)loadExamplePage:(UIWebView*)wwebView {
    

}
-(void)webViewDidFinishLoad:(UIWebView *)webVieww{
    self.currentURL = webVieww.request.URL.absoluteString;
   }

  

-(void)viewDidLoad{
        [self initNavBar];
 }
@end

